package cn.com.roy.thread.t7_2_6.groupinnerstop;

public class MyThread extends Thread{
    public MyThread(ThreadGroup group,String name){
        super(group,name);
    }
    @Override
    public void run() {
        super.run();
        System.out.println("ThreadName=" + Thread.currentThread().getName()
         + "准备开始死循环");
        while(!this.isInterrupted()){

        }
        System.out.println("ThreadName=" + Thread.currentThread().getName() + "结束了");
    }
}
